<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCommandeclientTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_prix}" for="prix" />
                    <h:inputText id="prix" value="#{commandeclientController.selected.prix}" title="#{bundle.EditCommandeclientTitle_prix}" />
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_date}" for="date" />
                    <h:inputText id="date" value="#{commandeclientController.selected.date}" title="#{bundle.EditCommandeclientTitle_date}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_idCommande}" for="idCommande" />
                    <h:inputText id="idCommande" value="#{commandeclientController.selected.idCommande}" title="#{bundle.EditCommandeclientTitle_idCommande}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_idCommande}"/>
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_validation}" for="validation" />
                    <h:inputTextarea rows="4" cols="30" id="validation" value="#{commandeclientController.selected.validation}" title="#{bundle.EditCommandeclientTitle_validation}" />
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_idProduit}" for="idProduit" />
                    <h:selectOneMenu id="idProduit" value="#{commandeclientController.selected.idProduit}" title="#{bundle.EditCommandeclientTitle_idProduit}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_idProduit}">
                        <f:selectItems value="#{produitController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditCommandeclientLabel_idPanier}" for="idPanier" />
                    <h:selectOneMenu id="idPanier" value="#{commandeclientController.selected.idPanier}" title="#{bundle.EditCommandeclientTitle_idPanier}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_idPanier}">
                        <f:selectItems value="#{panierController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{commandeclientController.update}" value="#{bundle.EditCommandeclientSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditCommandeclientViewLink}"/>
                <br />
                <h:commandLink action="#{commandeclientController.prepareList}" value="#{bundle.EditCommandeclientShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditCommandeclientIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
